// @ts-ignore
/* eslint-disable */
import request from '@/services/request';

/** 批量查询 GET /v1/audio-synthesis/batch */
export async function audioSynthesisV1ControllerBatch(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.AudioSynthesisV1ControllerBatchParams,
  options?: { [key: string]: any },
) {
  return request<API.AudioSynthesisBatchResult[]>('/v1/audio-synthesis/batch', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 列表查询耳机到耳机 GET /v1/audio-synthesis/earbuds-2-earbuds */
export async function audioSynthesisV1ControllerIndexEarbuds2Earbuds(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.AudioSynthesisV1ControllerIndexEarbuds2EarbudsParams,
  options?: { [key: string]: any },
) {
  return request<{ total: number; list: API.AudioSynthesisIndexEarbuds2EarbudsResult[] }>(
    '/v1/audio-synthesis/earbuds-2-earbuds',
    {
      method: 'GET',
      params: {
        // pageSize has a default value: 20
        pageSize: '20',

        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 耳机到耳机 POST /v1/audio-synthesis/earbuds-2-earbuds */
export async function audioSynthesisV1ControllerEarbuds2Earbuds(
  body: API.Earbuds2EarbudsDto,
  options?: { [key: string]: any },
) {
  return request<any>('/v1/audio-synthesis/earbuds-2-earbuds', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 全局数据（轮询） GET /v1/audio-synthesis/global */
export async function audioSynthesisV1ControllerGlobal(options?: { [key: string]: any }) {
  return request<API.GlobalRes>('/v1/audio-synthesis/global', {
    method: 'GET',
    ...(options || {}),
  });
}
